<!DOCTYPE html>
<html lang="en-US">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>option 配置项说明 | VueDialog</title>
    <meta name="generator" content="VuePress 1.8.2">
    
    <meta name="description" content="函数式vue弹框组件">
    
    <link rel="preload" href="/assets/css/0.styles.cc89e670.css" as="style"><link rel="preload" href="/assets/js/app.788a47ea.js" as="script"><link rel="preload" href="/assets/js/2.7e7556ec.js" as="script"><link rel="preload" href="/assets/js/15.39a933fd.js" as="script"><link rel="prefetch" href="/assets/js/10.b84ad5d4.js"><link rel="prefetch" href="/assets/js/11.fc2c4f3c.js"><link rel="prefetch" href="/assets/js/12.9c54e5b5.js"><link rel="prefetch" href="/assets/js/13.ac599485.js"><link rel="prefetch" href="/assets/js/14.1e4ace2f.js"><link rel="prefetch" href="/assets/js/3.c3e77ff5.js"><link rel="prefetch" href="/assets/js/4.23df146b.js"><link rel="prefetch" href="/assets/js/5.8e9108c5.js"><link rel="prefetch" href="/assets/js/6.16373f7f.js"><link rel="prefetch" href="/assets/js/7.fd48b8cc.js"><link rel="prefetch" href="/assets/js/8.bb0177c6.js"><link rel="prefetch" href="/assets/js/9.c3c48dac.js">
    <link rel="stylesheet" href="/assets/css/0.styles.cc89e670.css">
  </head>
  <body>
    <div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/" class="home-link router-link-active"><img src="/assets/logo.png" alt="VueDialog" class="logo"> <span class="site-name can-hide">VueDialog</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/" class="nav-link">
  首页
</a></div><div class="nav-item"><a href="/zh/guide/example/" class="nav-link">
  快速开始
</a></div><div class="nav-item"><a href="/zh/guide/api/" class="nav-link">
  API
</a></div><div class="nav-item"><a href="/zh/guide/api/" class="nav-link">
  在线Demo
</a></div> <!----></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/" class="nav-link">
  首页
</a></div><div class="nav-item"><a href="/zh/guide/example/" class="nav-link">
  快速开始
</a></div><div class="nav-item"><a href="/zh/guide/api/" class="nav-link">
  API
</a></div><div class="nav-item"><a href="/zh/guide/api/" class="nav-link">
  在线Demo
</a></div> <!----></nav>  <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>指南</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/zh/guide/start/" aria-current="page" class="sidebar-link">快速开始</a></li><li><a href="/zh/guide/start/option.html" aria-current="page" class="active sidebar-link">option配置</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/zh/guide/start/option.html#option-配置项说明" class="sidebar-link">option 配置项说明</a></li><li class="sidebar-sub-header"><a href="/zh/guide/start/option.html#class-dialogcom类型" class="sidebar-link">Class dialogCom类型</a></li></ul></li><li><a href="/zh/guide/start/defaultOption.html" class="sidebar-link">option默认值</a></li></ul></section></li><li><a href="/zh/guide/api/" class="sidebar-link">API</a></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>示例</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/zh/guide/example/" class="sidebar-link">代码示例</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>联系我们</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/zh/guide/our/" class="sidebar-link">联系我们</a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h2 id="option-配置项说明"><a href="#option-配置项说明" class="header-anchor">#</a> option 配置项说明</h2> <hr> <table><thead><tr><th style="text-align:center;">属性名</th> <th style="text-align:center;">属性效果</th></tr></thead> <tbody><tr><td style="text-align:center;">hasHead</td> <td style="text-align:center;">true/false, 是否拥有头部</td></tr> <tr><td style="text-align:center;">customHead</td> <td style="text-align:center;">Class dialogCom类型、自定义头部（支持 vue 组件、html 代码片段、dom 元素、字符串）</td></tr> <tr><td style="text-align:center;">title</td> <td style="text-align:center;">String,标题</td></tr> <tr><td style="text-align:center;">hasMin</td> <td style="text-align:center;">true/false,是否有最小化按钮</td></tr> <tr><td style="text-align:center;">hasMax</td> <td style="text-align:center;">true/false,是否有最大化按钮</td></tr> <tr><td style="text-align:center;">content</td> <td style="text-align:center;">Class dialogCom类型、弹框内容（支持 vue 组件、html 代码片段、dom 元素、字符串）</td></tr> <tr><td style="text-align:center;">move</td> <td style="text-align:center;">true/false,是否可以拖动</td></tr> <tr><td style="text-align:center;">shade</td> <td style="text-align:center;">true/false,是否有遮罩</td></tr> <tr><td style="text-align:center;">minWidth</td> <td style="text-align:center;">Number,最小化宽度</td></tr> <tr><td style="text-align:center;">minHight</td> <td style="text-align:center;">Number,最小化高度</td></tr> <tr><td style="text-align:center;">bottomOff</td> <td style="text-align:center;">Number,最小化后距离窗口底部距离</td></tr> <tr><td style="text-align:center;">leftOff</td> <td style="text-align:center;">Number,最小化后距离窗口左边距离</td></tr> <tr><td style="text-align:center;">rowGap</td> <td style="text-align:center;">Number,行间距</td></tr> <tr><td style="text-align:center;">colGap</td> <td style="text-align:center;">Number,列间距</td></tr> <tr><td style="text-align:center;">location</td> <td style="text-align:center;">{top：0，left：0，bottom：0，right：0}，弹框位置，可由对象指定,为空则默认居中显示，左上角和右下角二选一，支持 px 和百分比</td></tr> <tr><td style="text-align:center;">area</td> <td style="text-align:center;">{height: &quot;300px&quot;, width: &quot;30%&quot;,}弹框大小，可由对象指定，支持 px 和百分比</td></tr> <tr><td style="text-align:center;">multiple</td> <td style="text-align:center;">true/false,是否为多弹框模式</td></tr> <tr><td style="text-align:center;">blank</td> <td style="text-align:center;">true/false,是否在点击空白处自动关闭弹框，仅在 shade 为 true 时有效</td></tr> <tr><td style="text-align:center;">mixin</td> <td style="text-align:center;">Object, <a href="https://cn.vuejs.org/v2/api/#mixins" target="_blank" rel="noopener noreferrer">混淆<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a>，用于完全个性化定制</td></tr> <tr><td style="text-align:center;">theme</td> <td style="text-align:center;">String, 自定义皮肤，目前内置皮肤theme-lan、theme-lv俩种</td></tr> <tr><td style="text-align:center;">success</td> <td style="text-align:center;">弹出成功后回调 type: Function</td></tr> <tr><td style="text-align:center;">cancel</td> <td style="text-align:center;">弹框关闭回调，type: Function</td></tr> <tr><td style="text-align:center;">minBack</td> <td style="text-align:center;">最小化回调 type: Function</td></tr> <tr><td style="text-align:center;">maxBack</td> <td style="text-align:center;">最大化回调 type: Function</td></tr> <tr><td style="text-align:center;">restore</td> <td style="text-align:center;">复原后回调 type: Function</td></tr></tbody></table> <hr> <h2 id="class-dialogcom类型"><a href="#class-dialogcom类型" class="header-anchor">#</a> Class dialogCom类型</h2> <table><thead><tr><th style="text-align:center;">属性名</th> <th style="text-align:center;">属性效果</th></tr></thead> <tbody><tr><td style="text-align:center;">type</td> <td style="text-align:center;">组件类型，可选值vue、html、dom</td></tr> <tr><td style="text-align:center;">subCom</td> <td style="text-align:center;">组件内容，可以是vue组件，html字符串，dom元素对象和类型对应</td></tr> <tr><td style="text-align:center;">subData</td> <td style="text-align:center;">组件数据，Object，当类型为vue时候可以通过此属性向子组件传递数据</td></tr></tbody></table></div> <footer class="page-edit"><!----> <!----></footer> <div class="page-nav"><p class="inner"><span class="prev">
      ←
      <a href="/zh/guide/start/" class="prev router-link-active">
        快速开始
      </a></span> <span class="next"><a href="/zh/guide/start/defaultOption.html">
        option默认值
      </a>
      →
    </span></p></div> </main></div><div class="global-ui"></div></div>
    <script src="/assets/js/app.788a47ea.js" defer></script><script src="/assets/js/2.7e7556ec.js" defer></script><script src="/assets/js/15.39a933fd.js" defer></script>
  </body>
</html>
